﻿@model Enterprise.Management.ViewModels.CreateUserViewModel

@{
    ViewBag.Title = "CreateUser";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section header{
<script src="@Url.Content("~/Scripts/ManagementController/CreateUser.js")" type="text/javascript"></script>
}

<h2>CreateUser</h2>

<p>
    @Html.ActionLink("Back", "Index")
</p>

@using (Html.BeginForm()) { 
    <table>
        <tr>
            <td>
                @Html.LabelFor(m => m.User_RoleID)
            </td>
            <td>
                @Html.DropDownListFor(m => m.User_RoleID, Model.Roles, "--请选择用户类型--")
                @Html.ValidationMessageFor(m => m.User_RoleID)
            </td>
        </tr>
        <tr id="tr_fengongsi">
            <td>
                @Html.LabelFor(m => m.User_CtgrID)
            </td>
            <td>
                @Html.DropDownListFor(m=>m.User_CtgrID, Model.Categories, "--请选择所属分公司--")
                @Html.ValidationMessageFor(m => m.User_CtgrID)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(m => m.User_Email)
            </td>
            <td>
                @Html.TextBoxFor(m => m.User_Email)
                @Html.ValidationMessageFor(m => m.User_Email)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(m => m.User_Name)
            </td>
            <td>
                @Html.TextBoxFor(m => m.User_Name)
                @Html.ValidationMessageFor(m => m.User_Name)
            </td>
        </tr>
        <tr>
            <td colspan=2>
                <input type="submit" value="提交" />
            </td>
        </tr>
    </table>
}

